package kr.co.redbean.events
{
	import flash.display.InteractiveObject;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	public class MenuEvent extends MouseEvent
	{
		static public const MENU_CLICK:String = 'menuClick';
		private var _menu:String;
		
		public function MenuEvent(type:String, menu:String, bubbles:Boolean=true, cancelable:Boolean=false, localX:Number=0, localY:Number=0, relatedObject:InteractiveObject=null, ctrlKey:Boolean=false, altKey:Boolean=false, shiftKey:Boolean=false, buttonDown:Boolean=false, delta:int=0)
		{
			super(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
			_menu = menu;
		}

		public function get menu():String
		{
			return _menu;
		}

		override public function clone():Event {
			return new MenuEvent(type, _menu, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
		}
	}
}